#!/usr/bin/env python

import zmq
import time
import os
import sys
sys.path.append('..')

if __name__ == '__main__':
    context = zmq.Context()
    publisher = context.socket(zmq.PUB)
    publisher.connect("tcp://localhost:5556")
    time.sleep(0.5)
    publisher.send_string('%d:%f:%f' % (1, 0, 0))
    publisher.close()
    path = os.path.abspath(os.path.join(os.path.dirname('trigger.py'), os.path.pardir))
    # filename = path + "\\plane\\main.py"
    filename = path + "/plane/main-withoutmixer.py"
    os.system("python " + filename)
